package com.atguigu.gmall.item.client;

import com.atguigu.gmall.item.client.impl.ItemFeignClientImpl;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.Map;

@FeignClient(value = "service-item",fallback = ItemFeignClientImpl.class)
public interface ItemFeignClient  {

    @ApiOperation(value = "数据汇总")
    @GetMapping("/api/item/{skuId}")
    public Map<String,Object> getItem(@PathVariable Long skuId);
}
